﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CMS.Entity;
using CMS.DAL;

namespace CMS.BLL
{
     public  class PartnerBLL
    {
         public List<PartnerEnty> GetLst(int p,string title,string types,out int count)
         {
             PartnerDAL dal = new PartnerDAL();
             return dal.GetLst(p, title,types,out count);
         }

         public int AddPartner(PartnerEnty pt)
         {
             PartnerDAL dal = new PartnerDAL();
             return dal.AddPartner(pt);
         }

         public int UpdatePartner(PartnerEnty pt)
         {
             PartnerDAL dal = new PartnerDAL();
             return dal.UpdatePartner(pt);
         }

         public PartnerEnty GetOne(int pid)
         {
             PartnerDAL dal = new PartnerDAL();
             return dal.GetOne(pid);
         }

         public int DeletePartnerById(int pid)
         {
             PartnerDAL dal = new PartnerDAL();
             return dal.DeletePartnerById(pid);
         }
    }
}
